package com.huatai.manage.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

public interface MinioService {

	 void makeBucket(String bucket);

	 void setBucketPolicy(String bucket, String policy);

	 String uploadFile(MultipartFile file);

	 String uploadInputStream(MultipartFile file);

	 InputStream download(String objectKey);

	 String getSignedUrl(String objectKey, int expires);

	 void deleteFile(String objectKey);

	 List<Object> listObjects(String bucket);
}
